{extend name="ace/layout/default" /}

{block name="content"}
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            <span>添加</span>文章
        </small>
    </h1>
</div>
<div class="row">
    <div class="col-xs-12">
        <form class="form-horizontal" id="details" method="post" action="" onsubmit="saveOperation( this );return false;">
            <input type="hidden" name="article_id" value="0" />
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章标题：</label>
                <div class="col-sm-10">
                    <input type="text" name="article_title" placeholder="输入文章标题" class="col-xs-10 col-sm-10" required="" />
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 所属栏目：</label>
                <div class="col-sm-10">
                    <select name="menu_id" class="col-xs-10 col-sm-10" required="">
                        <option value="0">请选择所属栏目</option>
                    </select>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章标签：</label>
                <div class="col-sm-10 article_label">
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章封面：</label>
                <div class="col-sm-10">
                    <input type="hidden" name="article_cover">
                    <br>
                    <div id="article_cover">
                        <div id="article_cover_filePicker"><i class="icon-cloud-upload"></i></i> 选择单张图片</div>
                    </div>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章来源：</label>
                <div class="col-sm-10">
                    <input type="text" name="article_origin" class="col-xs-10 col-sm-5" />
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>本站或者其他网站【外链填写链接】</span>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章Head关键字搜索：</label>
                <div class="col-sm-10">
                    <input type="text" name="article_keywords" class="col-xs-10 col-sm-10" />
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章Head描述：</label>
                <div class="col-sm-10">
                    <textarea name="article_description" class="col-xs-10 col-sm-10 min-height-50"></textarea>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 是否置顶：</label>
                <div class="col-sm-10">
                    <div class="radio col-sm-5">
                        <label>
                            <input name="set_top" type="radio" class="ace" value="0" checked="true" />
                            <span class="lbl"> 否 </span>
                        </label>
                        <label>
                            <input name="set_top" type="radio" class="ace" value="1" />
                            <span class="lbl"> 是 </span>
                        </label>
                    </div>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>首页置顶排序</span>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 是否推荐：</label>
                <div class="col-sm-10">
                    <div class="radio col-sm-5">
                        <label>
                            <input name="is_recommend" type="radio" class="ace" value="0" checked="true" />
                            <span class="lbl"> 否 </span>
                        </label>
                        <label>
                            <input name="is_recommend" type="radio" class="ace" value="1" />
                            <span class="lbl"> 是 </span>
                        </label>
                    </div>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>内页推荐展示</span>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 公开度：</label>
                <div class="col-sm-10">
                    <div class="radio col-sm-5">
                        <label>
                            <input name="is_public" type="radio" class="ace" value="0" />
                            <span class="lbl"> 秘密 </span>
                        </label>
                        <label>
                            <input name="is_public" type="radio" class="ace" value="1" checked="true" />
                            <span class="lbl"> 公开 </span>
                        </label>
                        <label>
                            <input name="is_public" type="radio" class="ace" value="2" />
                            <span class="lbl"> 密码访问 </span>
                        </label>
                    </div>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 公开度-密码访问：</label>
                <div class="col-sm-10">
                    <input type="text" name="access_password" class="col-xs-10 col-sm-5" />
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>密码默认不展示</span>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 详情外链：</label>
                <div class="col-sm-10">
                    <input type="text" name="article_link" class="col-xs-10 col-sm-5" />
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>如果填写，详情页会跳转链接</span>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 文章内容：</label>
                <div class="col-sm-10">
                    <!-- 加载编辑器的容器 -->
                    <script id="container" name="article_content" type="text/plain" style="min-height: 250px;width: 100%;"></script>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 排序：</label>
                <div class="col-sm-10">
                    <input type="text" name="article_sort" class="col-xs-10 col-sm-10" />
                </div>
            </div>
            <div class="space-4"></div>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right"> 是否草稿：</label>
                <div class="col-sm-10">
                    <div class="radio col-sm-5">
                        <label>
                            <input name="rough_draft" type="radio" class="ace" value="0" checked="true" />
                            <span class="lbl"> 否 </span>
                        </label>
                        <label>
                            <input name="rough_draft" type="radio" class="ace" value="1" />
                            <span class="lbl"> 是 </span>
                        </label>
                    </div>
                    <span class="lbl col-xs-12 col-sm-7"><span class="red">*</span>草稿，前端将不开发展示！</span>
                </div>
            </div>
            <div class="space-4"></div>
            <div class="clearfix form-actions">
                <div class="col-xs-12 col-sm-12 text-center">
                    <button class="btn btn-info" type="submit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}

{block name="script-src"}
{/block}

{block name="script"}
<script type="text/javascript">

</script>
{/block}